package org.neuedu.chapter02_0609;

public class VariabelDemo11 {
    public static void main(String[] args) {
        // 运算 兼容 方向问题
        /*
            byte,short,char,int 运算结果都是 int 类型
            byte
            short int long float double
            char
         */
        short age = 10;
        age = (short)(age + 10);

        byte num1 = 10;
        short num2 = 20;
        int num3 = num2 + num1;
    }
}
